package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @author jiyonghui
 * @className TransferNewStatusEnum
 * @description
 * @date 2020/1/16   10:34
 */
@Getter
public enum TransferNewStatusEnum {
    // 调拨状态
    UNTRANSFORMED("1", "enum.transferNewStatus.name.untransformed", "untransformed"),
    UNRECEIVED("2", "enum.transferNewStatus.name.unreceived", "unreceived"),
    DELIVERED("3", "enum.transferNewStatus.name.delivered", "delivered"),
    TRANSFERRED("4","enum.transferNewStatus.name.transferred","transferred"),
    CLOSED("5","enum.transferNewStatus.name.closed","closed"),
    ;

    private String code;
    private String name;
    private String attr;

    TransferNewStatusEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
